home *** CD-ROM | disk | FTP | other *** search
- TimeZone 1.0 (September 7th, 1995)
- Abel PHILIPPE
-
- This CPX allow to choose timezone and daylight time. With it help,
- Astrolog (or any other software) can find, from the internal clock, the
- GMT hour.
-
- Install :
- -------
- Copy the file TIMEZONE.CPX in thz folder CPX of your BOOT partition. If
- you didn't have it, copy the file XCONTROL.ACC at the root of your
- BOOT partition.
- If you have an ATARI ST/F or an MEGA ST/F (and only this models, and not
- those who are younger than the STE), copy the file ACOOKIE.PRG in the
- AUTO folder of your partition. This one create a 'Cookie Jar' in the
- memory and install a particular reset routine.
-
- Use :
- ---
- In France, we have one hour more on the GMT hour in winter, and two in
- summer. So, TIMEZONE.CPX must be set like that :
-
- - click on the 'Time Zone' button : a menu is displaying. You must select,
- with arrows, the item 'Central European Time -1h'.
-
- - Select 'Daylight Time' button in summer, and unselect it in winter.
-
- - At the right of it, enter '-1h00' in the editable field. It is the
- difference between spring and winter time (daylight).
-
- - Click on 'Save' to save yours settings.
-
- At the change of time, you'll just have to click on the 'Daylight Time'
- button, and to set the internal clock. (I now : it would be nice that
- TimeZone allow to set the clock during the time change ! Maybe in the
- next version...).
-
- Developper's note :
- TIMEZONE.CPX add a Cookie with this describe :
-
- identificator : 'ZONE'
-
- value : I consider this value like the one of two integers i and j :
- the high word for i, and low word for j.
-
- Explanation :
- i is the number of minutes that you have to substract to system's hour
- to find GMT hour (the Universal Time in fact, but ...)
-
- j is the number of minutes that you have to substract to system's hour
- to include the daylight time. Like that, in France, j must contain
- -60 in summer, and 0 in winter.
-
- I wrote this program because I need it for the use of the function time()
- of Pure C. It return the number of seconds since the 1-1-1970 at 0h00 GMT.
- It is based on the two global variables timezone and daylight. I suppose
- that timezone must contain the number of seconds to substract to the
- local hour to find the GMT hour, and daylight must contain 1 if there
- is one hour supplementary due to the daylight time. By default, timezone
- contain 3600 and daylight 0 (set for Germany ?) These two variables
- control time() and gmtime() but not localtime() (I think it's somewhat
- logical).
-
- Here is how to use cookie value :
-
- timezone=-i*60;
- daylight=-j/60;
-
- I hope it will work in all cases. Nevertheless, it seems that in some
- countries, the difference between spring/summer would be not of one hour.
- I don't know what would be the reaction of Pure C, for daylight can only
- take int value. In all case, it is surely possible to find a solution
- with a good value for timezone.
-
- Distribution :
- ------------
- TimeZone 1.0 is freeware. You can distribute it freely around you.
-
- To contact me :
- -------------
-
- abel@mathp7.jussieu.fr
-
- or Abel PHILIPPE
- 16 rue St Ferdinand
- 75017 PARIS - FRANCE
-